﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class UserControl_RecommendInfo : System.Web.UI.UserControl
{
    Operation operation = new Operation();
    static string infoType;   　　　　//信息类型
    
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Page.Title != "科技成果超市---详细信息" && Page.Title.IndexOf("用户") == -1)
        {
            infoType = Page.Title.Substring(Page.Title.IndexOf("---")+3);
            //DataList1.DataSource = operation.SelectLeaguerInfo(infoType, true );
            //DataList1.DataSource = SelectLeaguerInfo(false, "招聘信息", 6);
            DataList1.DataSource = operation.SelectRecommendInfoByType(infoType, 5);
            //DataList1.DataSource = operation.SelectInfo(infoType, true);
            //Response.Write(infoType+"yyy");
            DataList1.DataBind();
        }
        else
        {
            //DataList1.DataSource = operation.SelectLeaguerInfo(infoType, true );
            DataList1.DataSource = operation.SelectRecommendInfoByType("技术供应信息", 5);
            DataList1.DataBind();
            //Response.Write(infoType+"yyy");
        }
    }
}
